﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UtilityLibrary.Ormapping;

namespace WZ.Entity
{
    /// <summary>
    /// 公告信息（不包含内容）
    /// 数据来源：http://www.cninfo.com.cn/cninfo-new/disclosure/sse_latest
    /// 参数：stock=&searchkey=&plate=&category=&trade=&column=sse&columnTitle=%E6%B2%AA%E5%B8%82%E5%85%AC%E5%91%8A&pageNum={0}&pageSize=30&tabName=latest&sortName=&sortType=&limit=&showTitle=&seDate=%E8%AF%B7%E9%80%89%E6%8B%A9%E6%97%A5%E6%9C%9F
    /// 类型JSON
    /// </summary>
    public class Announcement
    {
        [JsonIgnore]
        public int Id { get; set; }
        [JsonIgnore]
        [ModelPropertyAttribute("StorageDateTime", false, false, true)]
        public DateTime StorageDateTime { get; set; }
        [ModelPropertyAttribute("AnnouncementdateTime", false, false, true)]
        public DateTime AnnouncementdateTime { get; set; }
        /// <summary>
        /// 公告标题
        /// </summary>
        public string secCode { get; set; }
        /// <summary>
        /// 公告地址
        /// </summary>
        public string secName { get; set; }
        /// <summary>
        /// 公告内容
        /// </summary>
        public string orgId { get; set; }
        /// <summary>
        /// 公告id
        /// </summary>
        public string announcementId { get; set; }
        /// <summary>
        /// 公告标题
        /// </summary>
        public string announcementTitle { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string announcementTime { get; set; }
        /// <summary>
        /// 公告附件URL
        /// </summary>
        public string adjunctUrl { get; set; }
        /// <summary>
        /// 附件大小
        /// </summary>
        public string adjunctSize { get; set; }
        /// <summary>
        /// 附件类型
        /// </summary>
        public string adjunctType { get; set; }
        /// <summary>
        /// 上市时间
        /// </summary>
        public string storageTime { get; set; }
        /// <summary>
        /// 栏目ID
        /// </summary>
        public string columnId { get; set; }
        /// <summary>
        /// 分页栏目
        /// </summary>
        public string pageColumn { get; set; }
        /// <summary>
        /// 公告类别
        /// </summary>
        public string announcementType { get; set; }
        /// <summary>
        /// 副公告
        /// </summary>
        public string associateAnnouncement { get; set; }
        /// <summary>
        /// 是否重要的
        /// </summary>
        public string important { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        public string batchNum { get; set; }
        /// <summary>
        /// 公告类型名称
        /// </summary>
        public string announcementTypeName { get; set; }
        /// <summary>
        /// 公告等级
        /// </summary>
        [JsonIgnore]
        public int Level { get; set; }
        public int NoticeType { get; set; }
    }
}
